/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn;

/**
 * <p>Project: app2022 - StringBuilder1
 * <p>Powered by webrx On 2022-01-12 17:43:55
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class StringBuilder1 {
    public static void main(String[] args) {
        StringBuilder sbu = new StringBuilder(5);
        System.out.println(sbu.length());
        sbu.append("hello");
        sbu.append("java");
        System.out.println(sbu);
        System.out.println(sbu.length());

        //StringBuilder 转换为 String
        String str = sbu.toString();
        System.out.println(str);

        StringBuilder sbu2 = new StringBuilder("helloworld");
        sbu2.delete(5,1000);
        System.out.println(sbu2);

    }
}
